// Copyright 2007. Adobe Systems Incorporated. All Rights Reserved.
package fl.controls;
	
import fl.controls.BaseButton;	
import fl.controls.ButtonLabelPlacement;
import fl.controls.TextInput; //Only for ASDocs
import fl.core.InvalidationType;
import fl.core.UIComponent;
import fl.events.ComponentEvent;
import fl.managers.IFocusManagerComponent;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.events.MouseEvent;
import flash.display.DisplayObject;
import flash.display.Sprite;
import flash.geom.Point;
import flash.text.TextField;
import flash.text.TextFieldType;
import flash.text.TextFormat;
import flash.ui.Keyboard;

extern class LabelButton extends BaseButton, implements IFocusManagerComponent {
	public var textField:TextField;
	var _labelPlacement:String = ButtonLabelPlacement.RIGHT;
	var _toggle:Bool = false;
	var icon:DisplayObject;
	var oldMouseState:String;
	var _label:String = "Label";	
	var mode:String = "center"; // other option is "border".  Not currently used, but is reference in subclasses.
	public static function getStyleDefinition():Dynamic;
	public static var createAccessibilityImplementation:Dynamic;
	public function new():Void;
	public var label(dynamic, dynamic):String;
	public var labelPlacement(dynamic, dynamic):String;
	public var toggle(dynamic, dynamic):Bool;
	function toggleSelected(event:MouseEvent):Void;
	function configUI():Void;
	function draw():Void;
	function drawIcon():Void;
	function drawTextFormat():Void;
	function setEmbedFont():Void;
	function drawLayout():Void;
	function keyDownHandler(event:KeyboardEvent):Void;
	function keyUpHandler(event:KeyboardEvent):Void;
	function initializeAccessibility():Void;
}
